get array dimension numpy

35

import numpy as np

arr = np.array([1,2,3])
arr.ndim

Comments

Submit
0 Comments